package com.dhcc.rabbitmq.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.dhcc.rabbitmq.base.producer.HelloSender;

@Controller
@RequestMapping("/hello")
public class MqController {
    @Autowired
    private HelloSender helloSender;

    @RequestMapping("/mq")
    @ResponseBody
    public String mq(){
    	helloSender.send1("hello world");
        return "success";
    }
}